import sys
import os
path=sys.argv[1]
# 使用pillow读取图片，获取图片的宽和高
def findAllfile(path):
	for root,ds,fs in os.walk(path):
		for f in fs:
			yield f
print(os.getcwd()[-4:])
num = 175
for line in findAllfile(path):
	print(line)
	if os.getcwd() != "temp":
		os.chdir(path)
	print("cd %s"%os.getcwd())
	num += 1
	print("rename %s  -- >   t%d.png"%(line,num))
	os.rename("%s"%line,"t%d.png"%num)
	os.chdir("../")
	print("cd %s"%os.getcwd())